<?php
namespace app\index\controller;

use think\Db;

class Index
{
    public function index()
    {
        echoJson(1,"ok",Db::table("url")->where("id",1)->value("directroy"));
    }

    public function save(){
        $id = input("url");
        echoJson(1,"ok",Db::table("url")->where("id",1)->update(["directroy"=>$id]));
    }
}
